/* 
 * File:   SmoothFilter.h
 * Author: root
 *
 * Created on October 27, 2015, 8:57 PM
 */

#ifndef SMOOTHFILTER_H
#define	SMOOTHFILTER_H

#include "SensorData.h"
#include "RawData.h"
#include "Buffer.h"

typedef unsigned int uint32;

class SmoothFilter {
public:
    SmoothFilter();
    SmoothFilter* getInstance();
    SensorData* get();
    void release();
    void update(const RawData *a2);
    
    SensorData sensor;
    Buffer<RawData, 6> rawBuffer;
    
private:
    static SmoothFilter* instance;
    
};

#endif	/* SMOOTHFILTER_H */

